import $http    from '@/utils/http';
import $toast   from '@/utils/toast';

/**
 * 搜索
 * @param  string search_name 搜索
 * @return Promise
 */
export function searchName(search_name)
{
	if(!search_name)
		return new Promise( ()=> { $toast('关键字不能为空') });

	return $http.post('',{ module : 'Home#goodsSearchList', search_name : search_name });
}

